package ShuZuDeChuangJianHeShiYong;

import java.sql.Array;

public class TEXT {
    public static void main(String[] args) {
        int [] array ={1,2,3};
        FangFa2.extension(array);
        FangFa2.printarray(array);
        System.out.println(FangFa2.printarray(array));


        //奇数位于偶数之前
        int [] array1={1,2,3,4,5,6};
        System.out.println(FangFa2.array11(array1));


        //二分查找
        int [] array3={1,2,3,4,5};
        System.out.println(FangFa2.find(array3, 4));

        //冒泡排序（升序）
        int[] array4={1,3,2,1,5,1};
        System.out.println(FangFa2.MyIntSort(array4));


        //俩数之和
        int[] array5={2,3,4,5};
        System.out.println(FangFa2.addarray(array5, 5));

        //单身狗
        int[] array6={2,2,1,1,5};
        System.out.println(FangFa2.singDog(array6));


        //返回出现次数多的元素
        int[] array7={3,3,3,2,2,1,3};
        System.out.println(FangFa2.ChuXian(array7));


        //出现三个以上的元素个数是奇数
        int[] array8={1,3,5,6,7,8};
        System.out.println(FangFa2.panDuanLianXuChuXianCiShu(array8));
    }


}
